OnPlayedListener

The listener interface for receiving notifications when a piece of content (represented by a Source object) has been "played" or displayed within the RevelDigital player.

"Played" in this context typically signifies that a specific content item has actively started its playback or display cycle. This event is often used for proof-of-play logging, analytics, or triggering actions dependent on content presentation.

A class interested in processing these "played" events implements this interface. The listener object is then registered with the relevant component responsible for content playback or scheduling (e.g., using an addOnPlayedListener method on a playback controller or media player).

See also

// Crucial: Source interface/class should be well-documented.

OnCompletionListener

// For events when playback completes.

Functions

Link copied to clipboard
abstract fun onPlayed(source: Source)
Called when a specific piece of content (source) has been played or displayed.